fix(session): prevent concurrent cross-process writes - #1839
Merged
Conversation
limityan
force-pushed
the
yanzhn/session-single-writer
branch
2 times, most recently
from
July 29, 2026 04:52
3d8cc76 to
fed3f9a
Compare
limityan
force-pushed
the
yanzhn/session-single-writer
branch
from
July 29, 2026 06:30
fed3f9a to
01e8edf
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
SessionManageras the only Session lifecycle owner and reuse one OS file-lock implementation for Runtime ownership, Session writes, and serialized updates to the shared Session index.Behavior
session_in_use; no polling or automatic takeoverSessionManagerstill keeps one active binding per Session IDScope
session_in_useclassification. SDK Host exposes the existing retryableaction_required; GUI, Embedded TUI, and Headless CLI continue to show an explicit text error without promising a structured field.Validation
cargo check --locked --workspacecargo test --locked -p bitfun-core -p bitfun-desktopbitfun-services-corebitfun-acp/bitfun-cligit diff --check